package com.smkj.kaoqin.modules.teacher.api;


import com.smkj.kaoqin.common.result.VResponse;
import com.smkj.kaoqin.modules.teacher.pojo.dto.ClassesDTO;
import com.smkj.kaoqin.modules.teacher.service.impl.TClassesServiceImpl;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.annotation.Resource;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author yztyear
 * @since 2024-09-11
 */
@Tag(name = "班级管理")
@RestController
@RequestMapping("/teacher/classes")
public class ClassesController {
    @Resource
    private TClassesServiceImpl tClassesService;
    /**
     * 创建班级
     * @return
     */
    @Operation(summary = "创建班级")
    @PostMapping()
    public VResponse<String> addClasses(@RequestBody ClassesDTO classesDTO){
        return tClassesService.addClasses(classesDTO);
    }
}
